import request from "@/utils/request";

//查询做版管理列表
export function getVersionList(params) {
  return request({
    url: "/mes/version/list",
    method: "get",
    params,
  });
}
// 新增
export function addVersion(data) {
  return request({
    url: "/mes/version",
    method: "post",
    data,
  });
}
// 修改
export function editVersion(data) {
  return request({
    url: "/mes/version",
    method: "put",
    data,
  });
}
// 详细信息
export function getVersionInfo(id, params) {
  return request({
    url: `/mes/version/${id}`,
    method: "get",
    params,
  });
}
// 删除
export function delVersionInfo(id) {
  return request({
    url: `/mes/version/${id}`,
    method: "DELETE",
  });
}

// 导出
export function exportVersionList(data) {
  return request({
    url: `/mes/version/export`,
    method: "post",
    data,
    responseType: "blob",
  });
}

// 明细查询
export function getVersionDetaillist(data) {
  return request({
    url: `/mes/version/DetailList`,
    method: "post",
    data,
  });
}
